make pubkey print out key in ssh encoding, add --pem flag for old format, fixes #50