Update detect-luajit-extensions.c

-Check if global string var is uninitialized, in that case return 2.