Closes #922
Fix trailing slashes in directory listing
Merge pull request #924 from spumko/issue/922

Issue/922