BUG: almost fixed issue #105. Just need to apply same fix to sct_dmri_separate_b0_and_dwi (called at line 463)