Split build script. Add gc script for out/ clean up.