added bash enviroment check