mussel,test: add strfile_type().
mussel,test: replace if-statement with strfile_type() helper.