Removing "\r" when followed by a "\n" for Windows systems

I have improved the output for Windows since it will print a `\r` before making a newline.

I also added quotes around `$FILE` to manage paths with spaces.