Implemented OS detection