mock._get_target expects an attribute of a module. if there's no dot we can just import the module itself.