add xsh function ns_which (cross platform -s option support)