Add improved multi-site/network support

Small patch for the download path so that it accounts for the different upload directories that network sites use.

This resolves an issue that resulted in a "Download path is invalid!" error message when downloading a file on a multi-site setup that myself & others are experiencing.