perl: fix detection of Perl >= 5.20 with autotools