Fix token generation, fix error when mbox_sha1sum is not available. New version.