IPAs are installed as user applications and don't have root privileges. So even if you somehow got iFile installed as an ipa, you can't put things into /var/lib. Besides, I just tried packaging iFile as an ipa (on iOS 6 though), and it can't even be installed successfully. As dpkg is broken I can't think of any ways for you to fix the problem.