Fixed pg_version() crash with older postgresql