1. Made the Lua thing used be an optional variable, so it works for different Lua versions and locations 2. Made it work better with windows filesystems being weird with trailing dots.