Fix version script failing when HEAD directly contains hash instead of ref to it.
Add Travis-CI config file.
Merge pull request #8 from psychonic/travis-ci

Add support for Travis-CI