releasetools: Allow to build with a separate output directory

Change-Id: I5898d64108fa5f9b6ea8cee2c401dfdff47f17a2