New implementation of getCurrentBranch() to use "git rev-parse --abbrev-ref HEAD"
Merge forked repos pull request 9.
Code cleanup.