Change iteration variable names to avoid clashes with the rest of Spack
Spack's weird overall architecture makes temporary variables in the package scope really dangerous. In my case, an iteration variable 'module' caused the perl package to fall over...