Fix newlines on console output