using integrated security

Corrected environment checking when not running in AppVeyor