Adding in local scoping for varaibles due to symLink and copyAndTag colliding on variable scoping/setting