When using bear -- make buildworld, the bear failed on getcwd in this function.
This is because the interceptor want to use getcwd on a deleted
directory. We move the pwd out from the $OBJTOP.
Notice that any operation on $OBJTOP should be invalid after calling rm.
As a result, it is safe to move to any place.