Rewrite the build file