Mode regularization of the configuration space path integral in curved space