[PLAT-3017] Follow symlinks when scanning for a JRE
Set working folder before patching MSM parameters