REF: check_dependences: refactoring
REF: check_dependences: refactoring

Former-commit-id: a83d18e17d4782c759bdfa980314621fbc4cad0f
Former-commit-id: dbb1f9730d06d8616fdd94c55968aca15244a5a1
3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox