cleaned up a bit the scripts - added check if the env variable exists or not (indicating vs installation)