Syncronize file mode (fixes #20)