added TSV support
minor change
Added auto-check to search for closest match for default locale if default locale is not found. (ie, if system locale is "en", it will accept "en-US" or "en-UK" if one of those is provided but "en" is not)
tweak
getDirectoryContents(): account for other targets like HTML5 as well