Mini-correction on the DirectoryHelper

... to avoid errors or miss-returned