Added script-dir home variable and patch to MoSync gcc build