remove old generated files
fix inconsistent order of entries in generated build script