added setlocal to fits.bat to rule out any environment variable conflicts