using a bool to check for Linux, http://stackoverflow.com/a/5117005