Fix updating of existing targets during project-rescan. Test it (sort
of) by forcing a project-rescan with buffers open.