Improve build script.

Error out if there are unstaged/uncommitted changes.
Build for production deploy.