It feels a bit odd we need to do this every time we refresh the output folder, but I guess there is no other way...