Fix issue with missing new line in end of authorized_keys

Change key deployment bash script to gracefully handle the
case where there is no new line in the end of authorized_keys.