Improved the file glob.
Added some lua environment bootstrapping.