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