move Gruntfile.js and build.sh to chipper, add prerequisite checks, use curly braces sparingly to disambiguate shell vars