allow initGitbook() to be run multiple times (i.e., after changing SUMMARY.md)

Two fixes that improve performance when running initGitbook() after changing SUMMARY.md. First, Escaping the '.' character in prevents renaming of preexisting .Rmd files.  Also, this pull request checks for existence of the knitr header before adding it: otherwise you get duplicate headers.