git-bisect: fix wrong usage of read(1)