Fix bug affecting -finish-on-target-match

Because of a mistake with if-statement delimiting, it had accidentally
been disabled when -target-guidance was not enabled.