act on target-dir changes during update

This fixes #913