Improved the enforce-formatting-rules script
Improved the enforce-formatting-rules script

* The crlf normalization added an incorrect cr char on non-empty final lines
* Added dependency on perl instead of sed since perl handles \n better
* Improved code style by extracting a main function

Schumix/YamlDotNet,aaubry/YamlDotNet,aaubry/YamlDotNet,steinbitglis/YamlDotNet,derFunk/YamlDotNet,Schumix/YamlDotNet,vwxyzh/YamlDotNet,vwxyzh/YamlDotNet,aaubry/YamlDotNet,steinbitglis/YamlDotNet,kwaak/YamlDotNet