Removing "\r" when followed by a "\n" on output. Added quotes arround "$FILE".