use local $caller_module_name instead of top-scope

I noticed the variable was empty when enabling strict_variables on puppet.
Using local instead of top-scope solves the problem. Which seems logic here.