fix script.library type missing in runscript/runaddon checks.

should be considered runnable scripts
Merge pull request #5593 from tamland/runscript-fix

fix script.library type missing in runscript/runaddon checks.