Replaced rsvars.bat execution with comspec by parsing the batch file (much faster and no problem with failing cmd.exe process)

May fix Mantis #6282