As per discussion at PDLPorters/pdl#412 (comment) regarding finding a shell script on MSYS2/MinGW64, it might be useful to use File::Which's logic to find scripts that would be run by sh.exe which do not have any suffix.
This override can be similar in function to $IMPLICIT_CURRENT_DIR.