More (ugly) debug-code to get raw output from installesdtodmg.sh