Only rehash cpanm if required

Created to avoid [lock file](https://github.com/tokuhirom/plenv/blob/master/libexec/plenv-rehash#L21) contention when running multiple instances of cpanm for invocations that don't need to rehash..