fix env setting script