checking if build directory exists in tmp