Change the mode parameter for directory creation to 0777 (#6)

This especially affects the directory-sync plugin. If other modes are desired,
the umask of the process should be set accordingly. This change allows the
plugin to create directory that are readable or writable by other users than
the process owner.