Fix for linking var filenames in bash <= 4.2

Symlinking var filenames didn't work in bash versions 4.2 and
earlier since support for global associative arrays declared inside
functions weren't introduced until 4.3, so as workaround just
declare it outside the function.
Merge branch 'hotfix/fix_varlink_bash42'