Updated to compile correct directory most of the time