minor fix for virtualenv compatibility