Fixed permission issue with creating build directory.