Start xdg-open in new process group (fixes #164)
Minor cleanup in discovery