agent: Simplify serving of ui files