Add support for building upgrade files