Don't add a nix-build build product unless $out is a directory
Show links on products of type "doc"