Update releasetools

Merge from cm with some modifications