Added safe check for virtualenvwrapper