Fix script externalization.