Remove unused code in build script