fix bug in _guess_plat