fix ifMatch and serveGetDir