Keep private keys when regenerating firmware (#383)