Fixing virtualenv detection
regenerate based on vars not existing, instead