Fix shell script deployment bugs.