stat() hotfix

Mode / perms fix