fix "luarocks remove -> not found" with system root dir

cfg.root_dir can be a table, so e.g. a typo in the name
of a rock to remove resulted in an error