Check for usable temporary directory

A user may override the sos temporary directory via --tmp-dir to
a non-existent or unwritable location. Check for this before
initialising temporary files and exit with an error message.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>