Fix getting Github reponame if 'name' is path