chdir to throw nanoc a bone.

Also, s/base_dir/dir/g