shims: move the 'perl' specific part of the common shim to a plugin

The part of the default shim that was in fact specific to a shim called
'perl' is now in a rehash plugin, in the same way as 'cpanm'.
The standard shim is now just 3 lines.