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. 
I did it like this to allow for example, expanding to CentOS. In which case they would both be "linux".  In essence, there would still need to be some sort of OS detection.