dog: print dog version with -h option

This patch lets dog print its version with -h option (or when it isn't
passed any parameters). It is useful for trouble shooting.

Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
Signed-off-by: Liu Yuan <namei.unix@gmail.com>