Previously we only used the resolved name, causing repeated resolution (e.g. /dir to /dir/default.nix).