fixes bug #786 per_page_uploads: incorrect file path if page is inside some directory

see bug https://github.com/gollum/gollum/issues/786
the patch is straightforward