cleanup knitr option generation