Created a copy of Connect's directory middleware, to modify