Fix missing pg_config location and dependency ordering