Fixed a problem with OS recognition