Add guards for virtual envs.