fixing condition checking for travis environment