Fix bug in the conversion of command name to Bash function name: use replace all