Why call fix_ssh_permissions twice: before and after write operation? Expecting what File.open will change permissions?