BF - fix fit-tensor handling of file extensions and mask=none
RF - minor cleanup
Merge pull request #190 from MrBago/bf-fit-tensor

BF - fix fit-tensor handling of file extensions and mask=none