fix paths issue in windows when resetting R working directory