Make middleware source and destination directories relative to req.baseurl