getDir.C macro works