Bug 1074166 - Fix device type l10n missing issue

Since you provide a fix for utils.baseName/utils.dirName. I think you should use
var dirName = utils.dirName(file.path) 
var fileName = utils.baseName(file.path) 

then we can make sure your modification is correct.