Fixed some problems with release automation.