Fix problems with test scripts when checking luajit