Get a valid SHA to represent the branch in the Rakefile if a branch name can't be divined.