Implement own which command to eliminate stdout output