Made config path more robust