adding which command as a dependency