Ugly but functional virtualenv support