Address issue #845: Raise a helpful error if github location ends in .git

To address issue #845, this change raises a helpful exception message if the identifier provided to a `github` location ends in ".git".  A test is included.