made the handling of inrootdir and outrootdir backward compatible