Fix tests shell scripts to report failure when the targets weren't compiled.