refs #4074 in case we know it is a plugins or a core class, try to load it directly from there and do not look in other folders first. Unfortunately we still need the other logic for backwards compatibility