Fix dynamic determination of repo
Fix dynamic determination of repo

* Adjust sed to handle both repo and repo.git style remotes
* Wrap the read in an if so a failed read doesn't exit immediately and
  silently

yesodweb/scripts