PCT-808: lock error message "Executable file not found in $PATH" with tests