Fix long list and status monitor output when a directory argument is given.