Fixed emscripten build. Changed shell from cmd to bash. Fall back to lua 5.1.5 on platforms where luajit is not available.