do not emit temp .o files to curr dir, if target is not them; fixes #2644