fix permissions for files
Merge pull request #2 from unclejack/fix_permissions

fix permissions for files and directories