to support directory_slash

with the patch

resource '/bar/' {

with both match /bar/ and /bar.

Thanks.