Prevent parallel execution of custom build script