Added automatic client OS detection