releasetools: Allow to build with a separate output directory

Change-Id: I5898d64108fa5f9b6ea8cee2c401dfdff47f17a2
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0