A nested add-on is a packaged add-on contained inside the folder of another one. So if you had script_foo and inside the script_foo was script_bar, then script_bar is the nested add-on. To make sure script_bar is activated, move it out of the script_foo folder into the add-ons folder.