Bug 1102085: Use "mach environment" to extract the object directory.

If "topobjdir" is None, use default object directory.