Update init script. Now supports build, clean, and rebuild