Fix open_URL so it works in more setups