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. 
Go convention is to capitalise all of none of acronyms (depending
on whether the first letter is capitalised).

OSVersion, not OsVersion.

I'm not sure I see what value this variable adds though. Why not just
call OSVersion inside NewOSVars ?