Reltool fixes

Two small changes which will help us building azdht via reltool.