Unset $opt after getopts loop
Unset root after for loop
Unset rule and name