Fix shell script environment.