fixes the "fake parent dir" bug

(and makes debugging builds nicer)