Fix Linux/WINE scripts to be more robust