Fixed compiledir reporting the incorrect directory