Change gzip to work correctly under Linux systems.
Update compression code to work under Linux systems.
Fix exec_browser to work under Linux systems.

Try xdg-open when browser is not setup in environment.
Fix mktemp in doctor to work under Linux systems.