Allowing optional trailing slash on paths.