Fixed the way maos looking for config file