tools build: fix # escaping in .cmd files for future Make