Fix #226: libs and /system

If you have an old phone and put the app on /system, following the convention of extracting things that look like libraries to /system/lib, that will now work.

Extracted some stuff to Utils while in the area.