Update the build maintenance tasks to support 2.99.

This is similar to #53 but for 2-99-maintenance branches.