Fixed 'devices' command output

Prints complete table once, instead of printing it after every
entry is added.