randpermute -> permutefile; non-Cygwin platform supported