Commit f08e30d7 broke compatibility with DOS and non Windows NT based versions of Windows due to the use of the setlocal command.