Tweaks to Versioning file to not die when HEAD isn't a reference.