Process_Folder: enhance check for directory path

Michael Schmid suggested on the ImageJ mailing list that it's better to use File.isDirectory(path) instead of endsWith(path, "/").
See http://imagej.1557.x6.nabble.com/Recursive-processing-of-a-directory-not-working-correctly-tp5007797p5007819.html