Os detection made nicer