Fix improper use of expand_path

I don't even.
Fix extraneous use of which and cmdsub

I don't even.
Anchor the scheme
Be more specific

Perl!
Land #2699, @wvu fix for Linux download_exec post module