debug: output directory name to diagnose error