Fix filename in index generation for swift uploads

Currently the indexes that are generated include the full path to a file
even though you are in a directory. For example, you may have drilled into
logs/subdir/ but all of the links in there will appear as
"logs/subdir/output.log" etc.

This makes the indexes only show the basename of the files or folders while
keeping the absolute url's.

Change-Id: Ib58a07c19c15179d8b086431a6a9094de5e41e58
Merge "Fix filename in index generation for swift uploads"