adaptation for large source tree

here's 2 small changes to make life easier with large source tree (aosp + kernel for example).