Graceful envs

Implements euid checks for OSX and Linux. Needs the std::string/boost::filesystem::path problem on master to be resolved before Linux can be tested. OSX works.