PGDIR is not a config setting; changed to $PGDATA