Patch from Fabian Jäger to ensure rebuild if there are remote changes.