Added auto detect text files and perform LF normalization

Added auto detect text files and perform LF normalization