XWIKI-9153: hibernate.cfg.xml is not properly generated for pgsql
(cherry picked from commit 9e5c24f759d45fcdc3e574bbb4298b8e4bb197c3)