md: trim last slashes from paths

Currently, same path with different trailing slashes will be treated as
different paths such as following example

$ collie node md plug /store
$ collie node md plug /store/

Both will plug succeed (so as to unplug). This is obviously wrong.

Signed-off-by: Liu Yuan <tailai.ly@taobao.com>