Fix error when testing if inside the current virtualenv