Shell script error fixes.