Fixed/improved a few bits of rdiff, dup and sys handlers.