Fixes issue #215

There don't seem to be any tests for this feature, but I tested the fix with my $work code, which uses cpanm as part of creating a minicpan in our repo.

Fixed #215.