Improve Perl detection
Merge pull request #11 from iarna/improve-perl-detection

Improve Perl detection