Guard more vars. Create the docs dir if missing