two small changes

Fixed two small issues I had running this on my system.

1) a newline in appid.txt broke the url string.

2) check for OSX (darwin) and run 'open' rather than gnome-open