Fix open github script for git repos without remote named origin