Bookmark: Fix empty name when path has trailing slash

Normalize the path / remove redundant separator before trying to get the
folder name.

Issue Number: #288 
Reported-by: Vdragon
Signed-off-by: Minarto Margoliono lie.r.min.g@gmail.com