Fix luajit dir check