ShellHelpers cmd_dir should not return directories that match cmd_name