MAP-964, MAP-1037: improve performance of beginRelease, fix scripts