Fixed branch name regex in lib/status

It now handles branches with version numbers as name correctly.
Fixed branch name 'undefined' on initial commit

The branch name regex doesn't match for 'Initial commit', so now it
defaults to it.
Fixed handling inital repos & branches w/o remote
3.0.1