Fixed if conditional in travis config file