Fix script build