msys: added setlocal to keep variables in subshell

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
ReleaseNotes: mention the problem with -L/regex/ being misinterpreted

Suggested by Pat Thoyts.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>