Removing "\r" when followed by a "\n" on outputQuotes arround "$FILE"

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.