Use function-local scope for shell variable in SHELL_FUNCTION template.
Merge pull request #3 from antipax/master

Use function-local scope for shell variable in SHELL_FUNCTION template