Test for bug 597136: external script errors