detect moved files also on cancel

We don't want duplicate entries even if the library scan was canceled.
This way it is possible to update the library with incremental scans