Couldn't this be auto-detected for? Something like
if (-d $bayes_path) { $bayes_path =~ s(/?$)(/bayes); }
Yes, but what if the user really wanted the original option, and the directory exists as an error?
In some ways it's nice to auto-correct user errors, but you need to be sure you're doing the right thing. Sometimes trying to "Do what I mean not what I say" can bite you.