Ensure that the directory name always ends with /
Ensure directory name always ends with "/"