Make sure build directory is generated.