Automatically update cargo when necessary