Reapply patch to handle @loader_path.