Fix generating encrypted wallet from command line