Resolved the following issues:

Autoresize partitions is not working:
1) grep error during autoresize
2) can not find boot partition to exclude from resize.
   (it is not reliable to assume that the boot flag in
   partition table is set.)

I did test this modification in one situation and it solved the problem for me.