Improve ExternalProcessWindowMenu dectection of the return uri