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>
copy files instead of directories to give --remote-copy implementation a chance to dereference symlinks

also fixes #242 by filtering 'hidden' files (starting with a dot)

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>