Adjusting rewrite middleware for gulp-connect