Only replace the file modification service if ServeCommand.doCommand() is invoked, so that  isn't slowed down too.