Add cross-platform supports for configFile