make extra trailing slash in path irrelevant

reported by @mafintosh
3.5.0