added environment check to virtualenv location