COUCHDB-1438 - fix - Ignore trailing / on root

This is my attempt to fix https://issues.apache.org/jira/browse/COUCHDB-1438