fix permissions of newly created files