get the path of shell script,init env,init dirs,check env,check dirs