Fix the build process

Compaction is disabled for now, it's not working quite right
Don't write the script twice