Report error from generating SSH key
Replace os.system with subprocess.check_call
Wrap long line
Create directory for keys if it does not exists