ensure that errors when loading directories, don't cause the load path to be removed