Fixes bug with key generation in OpsWorks