init grains dir