Modify some script to use env variable.