[FLINK-1213] Added .gitattributes to normalize EOL

This closes #181
[FLINK-1215] Increase robustness to spurious failures when creating output directories