cli: cast timeval fields to long for format

This hides platform differences between struct timeval field types.
gitignore: ignore sh.config and doc/config.dox