Detect Postgres data dir automatically