Added conditional checks to keep authorized_keys files from growing EUCA-7170