Update cram build plugin to handle new $plugin format