I get it to boot from the SD card every time now by making sure I enter a folder on the internal storage from the command prompt which prevents the phone from unmounting the internal storage. Only the SD card is made available to the connected PC and it boots from it.