Changing the umask when creating the file's directory