Make build and check arguments configurable via an environment variable.

This should address the main need we had in #4; I think this is as far as we want to go on this one until we're integrated with travis, but I could be convinced otherwise.

@hadley, please take a look ...