Bash fixes