Fix for issue in github API where a pull request is successfully submitted, but it throws a 500 error
Fix open_URL so it works in more setups