Fix import_str for multiple module paths

import_str does not handle multiple module paths, this can result in false positives, where import is never actually called.