Added convention that a directory path has to end with '/'.