fixed to fail when build plain lua
changed to use sed without --in-place option