Fix ZIP file path creation code (see #10804)

To test, try downloading an image from a multi-file image set (like LEI). The zip file should save fine in any target folder. Check that it works with your home directory (i.e. try saving to ```/Users/<username>/```). Any other file export options from Insight should be checked too.