fix compare with leading 0 on directory mode
mode and message handling now like __file type
Merge branch 'bugfix__directory' of https://github.com/dheule/cdist
++changes(3.0.1)

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>