Changed the error checking to not just be Windows only