cleaned code; added ShortPathName function to Lua for unicode filenames