Remove unnecessary exception thrown when OS was not Windows, Linux or OSX.