[master] Use actual file path on rename/delete

When renaming or deleting a file that is in a subdirectory, performing
the action from the sharing overview or another file list view, the
actual directory of the file must be used instead of the current
directory.

Please review @schiesbn @icewind1991 @karlitschek