Refactored update version task.