A re-investigation of the acid-catalyzed cyclization of δ-hydroxyamides