BUG: Debugging was on by default, and the path was determined at the wrong place