Fix syncresources (purge old) and include on postupgradecontroller