Improve measuring minFreeDiskSpace code

as discussed in http://exist.markmail.org/thread/nw4scz32z64ka72b