httpserver: Takes directory as an argument