tiny fix for retrieving postgres host(:pg_host) value in prefs

Daniel, I made a tiny fix. Please check.