Make register-release task more reliable