Use $Config{perlpath instead of $^X.

This is a potential fix for
http://www.cpantesters.org/cpan/report/c4697ee8-a0c1-1014-b22a-3462c5a8cb55