prepare: Better OS detection