Fix make_self for the newer firmwares

There was some mixup in the flag handling producing invalid
crypt data header.

This is untested with the older firmwares.