Only update the batch file if something changes

Expanding on #6