Fix errors if plugin dir not in runtime path