BRST invariance and gauge independence of string path-integrals