OPT: check_dependencies: now retrieve path_sct based on the location of the file instead of the output of sct_env, in case function is ran after installation
OPT: check_dependencies: now retrieve path_sct based on the location of the file instead of the output of sct_env, in case function is ran after installation

Former-commit-id: 2fa1e395a1278cd3f0701ce8b29f5809c5b3b4c0 [formerly f940d9c58bdb31321d1586d67b1bdc379e196e8f]
Former-commit-id: 9addbc9e224c1faba6f19ef6e6da2a6f831f9cf6
Former-commit-id: 430a0f20d28025f7ce58359cafc070b6b68b0b04
neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox