Fixed a bug in the add_keys bash script.