[interface] Fixed two bugs in command dump plugin output

+ readlines() doesn't strip '\n' so we should join directly without using '\n'
+ longOutput boolean must be calculate before joining back the lines