configure: add support for pseudo-"in source tree" builds