Fixed config_file path search that was not working on some platforms.

The minor change below should make path search for config file more OS agnostic.