Change linux distribution check routine for travis ci test