Added Rmd handling to app_dir.