Allow working directory to be overridden on the command line.
Handle various additional detached head checkout scenarios. Add tests for those scenarios and documentation for how version is determined.
Add list of tags for current commit to error output. Minor refactoring along the way.
Merge pull request #1 from teampants/develop

Handle various additional detached head checkout scenarios.