Change command used for determining current branch

- previous command was not functioning in TravisCI environment
Removed git error handling spec
- assumed that current branch on newly init'd repo
  would not be master (incorrect