support cpan in check_install

define check_installed_by_cpan
Usage: it { should be_installed.by('cpan') }