Merge pull request #18 from craigspaeth/master

Get the commit hash by env var first for platforms like heroku that remove git history
use proper mime module