Added enviroment check for GPG and SSH agents.