Replace where command by which command