Performance & compatibility tweaks

* Find & Replace temp file & directory no longer used, PolyRun writes
replace files directly to target directory. Should play nicer with git.
*Changed flushDirectory option 'copy' to 'num'. Rather than slow/ less
organized copying of directory to backup, new directories are appended
with one suffix per batch.