CFY-1718 Added possibility to specify grains outside configuration file