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. 
You should almost always use path/filepath instead of path.  path is always forward slashes, path/filepath is OS-specific about filenames.