Fix broken path variable for mac version
Only try to open a repo if we have a url

Otherwise, just open the app.