File permission settings changes

Refactoring default perms on file to mirror previous functionality befor...e mktemp integration