fixes #1 - file mode and ownership will now be checked and set