Fixed compatibility bugs with windows.

Old code had two problems.
First clean filter wrote CRLF at end of file instead of LF, so unexpanded files were 42b instead of 41b, so git-media could never expand them properly.
Second problem was that git media status never split files properly (tr was used in an unportable way)