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. 
We are actually trying to avoid having OS-specific files, Roger, so that we can ensure the maximum amount of code can be tested on linux, since that's our main development platform.