Fix java heap in script files