Update thor dependency to latest version