default to master if branch/version empty

when updating to an unnamed branch (i.e. master), i'd get:
Could not evaluate: Execution of '/usr/bin/git rev-parse origin/(no branch)' returned 128: fatal: ambiguous argument 'origin/(no branch)': unknown revision or path not in the working tree.