Dan9186 fix git branch detached

Is a fix for Issue #37 and updates the version number to reflect this bugfix and another that was already merged.
Looks good. This could be committed as is.

But now that I'm revisiting the code...

1. Should $branch be only `git branch` with later munging be done afterwards?
2. Should $branch be the whole line, sans the * at the beginning and the parentheses?
3. Maybe instead of saying detached it should just say the commit number?