Fixed sdcard image location.
Copied kernel image to output dir.
Added support for custom output directory.
Fixed /dev/mapper/loop device parsing.