finding cpan-upload command accurately

checking installed command did not work correctly because $exe would not be an empty string after foreach loop.