configure: clean up plugin option handling