fixing the navigation in between directories at compilation time