Revert some changes that broke file gathering, added more efficient
commandline creation.
Fixed doctest
Merge pull request #834 from chrisfilo/fix/dcm2nii

Revert some changes that broke file gathering, added more efficient commandline creation.