Improved path handing for config file