Fixes the compilation scripts written in lua