Workaround broken --remove-test-targets option.