Fixed JSON detection in configure.ac