util: do_exec: fix error handling and make function global
lib: fs_mgr: add back check_fs function
init: run e2fsck on source fs before mounting