Fixed extformat
Check for function, not version, by checking if formatting on %a passes rather than checking for Lua 5.2