Fix links with directory indexes.