MAINT don't use Perl in Makefile when sed suffices

Also replaced xargs with find's own command execution. This is more
robust in the face of paths with whitespace in them.