support cpan in check_install

define check_installed_by_cpan
Usage: it { should be_installed.by('cpan') }
Merge pull request #260 from catatsuy/feature/cpan-support

support cpan in check_install