Determines if the running OS is linux or not and executes accordingly.