fixed detect_cycles.py detection of strongly connected components in the module graph