write string imports to dependency file
Merge pull request #2835 from rainers/string_import_deps

fix  Issue 11546 - string import dependency failure