Be more exact about shebang checking
Land #2665, shebang fix for msftidy.