fix LocalExec to work from any location, split xhtml.lua scripts out