Update extract ramdisk setup

Change-Id: Ide04444c9bd2d0a35afe699243c2c773d279858e
Merge "Update extract ramdisk setup" into cm-10.1