Fix memo file path creation on Windows (rebased onto develop)



This is the same as gh-1095 but rebased onto develop.

----

Fixes https://trac.openmicroscopy.org.uk/ome/ticket/12271.