libmemhack: fix a segfault in config parsing

On the Nokia N9 MeeGo 1.2 Harmattan phone we've noticed that the
setting of the ibuf_offs doesn't work correctly. It is surprising
that it ever worked on x86!
So rework this completely by using strchr() to search for ';'
separators and make sure that ibuf is always NULL terminated.