audit: check the use of Dir[]

Sometimes `Dir[]` is used with single files/directories unnecessarily.