Fix make_self for the newer firmwares

There was some mixup in the flag handling producing invalid
crypt data header
Merge pull request #57 from bgK/make_self_fix

Fix make_self for the newer firmwares