Fix maintenance command documentation and host/filename logic.

Reviewed at https://reviews.apache.org/r/16983/