fixed OS auto detection