Fixed Makefile/configure for debhelper

debhelper builds with "make -C dir", which broke the dependency output
parser in the configure script because of the

 make[1]: Entering directory `…'

lines. Fixed by prepending the output with a prefix and grep'ing for
that.