tag_reachable_scripts checks if it needs to run.