Fixing the recursion on the file names. Abstracted the fileordir decision, made the stub var, reorganized the checkExt first and then the dir, added the %3f (is there another char in the filename?) check at more appropriate places.