Rewrite ramdisk script, lots of cleanup
Update build script