Detect postgresql better

Conflicts:
	modules/gpgsqlbackend/Makefile.am