Fix login and authorized keys file generation