loader: rename vars to avoid shadowing grains() func
Merge pull request #5159 from hulu/grains-shadowing

loader: rename vars to avoid shadowing grains() func