Use the full sub-command name for 'file isdirectory'.