fix some authorized_keys updating bugs in ms-server, and update to use