typo

Signed-off-by: Mattias Andrée <maandree@operamail.com>
print pid of mds-server

Signed-off-by: Mattias Andrée <maandree@operamail.com>
add some zero length checks

Signed-off-by: Mattias Andrée <maandree@operamail.com>