Use Config and $Config::Config{path_sep} to determine path separator