Make mode and perm acceptableto Pathnname#write