Fix build directory creation without changing designated path.