Add #! check to msftidy

#2588 -> #2597 -> #2606 -> #2618