ref typo
patch for win that doesn't have a which cmd