Fix #781: Set proper root dir when partesting