Added an assertion that the correct commit is checked out.

Also adds a commit and hostname file to the tarball.

Fixes #24 

Reviewers: @mhyee