"/path/to/folder/" should be treated the same way as "/path/to/folder"
mrtrix output fix