Change directory even if doc update fails