Fixed issue with bad build directory