Only try to activate virtualenv when possible