fixed error handling when identifying OS, on linux look for cFunction  Thanks @maqifrnswa\!