Update detect_parallel.sh