fix to work with connect >= 3.0 and serve-static