Bash with dirtrim patch