msys: added setlocal to keep variables in subshell

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>