Add \r in retarget

Serial retarget doesn't output correctly in most of terminal emulator by default, as there is not \r. Output was
line 1
       line 2
               line 3
This patch adds \r before \n before sending to UART, which fixes the issue. Tested with linux screen and Windows putty.