Fix error with path substitution in bash.