use better path construction for config file