Fix a bug with the way the directory_indexes plugin was used.