Fixes issue #3, explicitly scope loop variable

Ensures that the loop variables used to load the properties files is explicitly scoped to the function, rather than as a global variable.