[cli/messages] Fixed path construction.
[cli] Improved help format and algorithm.