fixed problems with build directory