MDL-40642 use this->cfg in local file store when fixing permissions