[minor] add support for one trailing slash