Fixed serial port logging

Before writing on the serial port, the port must be opened.

Due to this bug, when a nova console-log command is issued, the result is an empty string.