add bash env detection script