fix culling seen dependencies

FromDir returns a path relative to the workspace,
but we skip duplicate packages with import paths,
which are relative to directory src.