Improve keyExchange script in order to create new key pair if does not exist