Fix build directory creation