vkernel - enhance the pidfile option and fix memimg file scanning