fix automated ramdisk selection + inline kernel building

Change-Id: I14d5b1c0b94dd2fb6c95df78b87a1abed375117b