More intelligent pg_hba.conf and recovery.conf generation