Fix loc of rmodules plugin scripts when not inline