REF: check_dependences: refactoring
REF: check_dependences: refactoring

Former-commit-id: 68e9384a84bfcfb157987ee69dde894fb88f17a6 [formerly a83d18e17d4782c759bdfa980314621fbc4cad0f]
Former-commit-id: dbb1f9730d06d8616fdd94c55968aca15244a5a1
Former-commit-id: 4f667b6b769420ad5cfdfe69c88883c9b6534450
neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox