resolver::apply_path() refactoring.

Integration with bunsan::process::find_executable_in_path().