Bash script fixes.