Remove hardcoded paths

* added helper functions to return variables for system we are running on
* removed hardcoded paths and socket type

This will allow us to expand to other operating systems without changing too many files. 
Comments should always start with the name of the thing you're commenting about.  
For example:

  // WinEnv returns the environment value specific to Windows.
  func WinEnv() OsVars {

Also, comments should always be full sentences.  This ensures that you use good grammar, and makes it obvious that you didn't stop halfway through the comment and forget to write the rest.