Apply mimic_shell_dir_completion in format_shell_completion when given hint 'is_path'