fix virtualenv support