allow fallback to config.wrapper if mirror.wrapper is undefined