Set the grains file in the proper place if found on the provided temporary configuration directory.

Refs saltstack/salt#5849
Refs saltstack/salt-cloud#672