fix isStaging for config files