Update threaded-server.c

Directory index support added