Revert 72f0e37a3c201c0666 and 3f87260758f1ebe

The original rewrite of samecase broke tests.  THe naive fix for the exec
error caused hanging.  It is also not clear whether the solution is actually
a good one: http://irclog.perlgeek.de/perl6/2014-09-05#i_9302559