fixed a stupid bug in the sanity check for external scripts