Move cwd of the build command to the object directory instead of the source directory.

Also, don't kill the object directory if it's the source directory.
[bug 823777] Merge the fix of `callers:` and `called-by:` queries.
Merge branch 'testing' of https://github.com/mozilla/dxr into typedefs