Add support for paths that end in '/'