minor fix to be compatible with virtualenv