Added check for virtualenv before committing