when git isn't installed, which git will print to stderr, so redirect it
to null