Fix relative paths when modifying r2s.cfg