In linux when I try to run a command that I'm not sure exists, I always use "which", but as you've noted that's OS dependent. I see that someone at CPAN wrote File::Which, you might have luck with that... as it appears to be OS independent. (I've never used it.)