use the source language code specified by user if it exists in the identified language list; otherwise use the first one in the identified language list (fix #24)