upgrade: Add --os argument

This is useful when operating offline.