Build: make the "gensite" target work when DOCS_DIR does not exist (fixes #1530)

With this patch, `Makefile.js` checks to see if `DOCS_DIR` exists before deleting it, then uses `mkdir -p` to create `DOCS_DIR`.