Add new line at the end of each printf
Use uname instead of sysinfo

sysinfo returns Windows_NT for Cygwin on Windows.