Fix opening an url from the commandline