fix execscript check.