add better detection of pub id based on original ssh-copy-id