make sure paths does end in / to make sure they are directories.