Ensure that permissions are set after creating a file