fixed sgsexe by using a more stable executable append method