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

If "topobjdir" is None, use default object directory.
Merge pull request #41 from walac/bugz/1102085

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