Fix format_shell_completion