Properly handle inFolder metadata on Windows

add `f.split("\\") if sys.platform == "win32"` in handling of file name for metadata that are inFolder.
w/ some additional code simplification.