Removing references from path, adapting it to virtualenv and pip