Fix .bad file comparison on darwin.

Darwin's sed doesn't understand \+ so use * instead.
Tested on darwin and SUSE Linux.