jewel: properly handle emulated storage and external sd card for new partition layout