fixed bug in omport threadd when path has no subfolders