Fix script dependencies