Include log directory when invoking init command.
Fix tests related to xhtml file extension.