Allow dist-matlab to run on Windows (rebased onto dev_5_0)



This is the same as gh-1060 but rebased onto dev_5_0.

----

This should fix the archiving problems in ```BIOFORMATS-5.1-merge-build-win```.  On Windows without this PR, ```ant dist-matlab``` should not produce a new artifact; with this PR, ```artifacts/bfmatlab.zip``` should be present.

/cc @rleigh-dundee