Made more platform-independent

If possible in C#, made this more multi-platform by using a
platform-specific NewLine and DirectorySeparatorChar