Generate workspace rc up front
Generate the workspace environment and the RC file at the start of upgrade, independently of which steps are actually run. This should make the env generation more stable and robust to skipping steps such as system and prepare.