compiler-metadata: Properly handle cross-build OBJDIR.
MFC after: 3 days Sponsored by: Dell EMC Isilon