avoid creating temp dirs when not needed
avoid creating temp dirs when not needed

Move the block of code that creates the temporary directory closer to the
point when the directory is actually used. It was being created too early,
making options like --help and --verbose to create directories unnecessarily
and leave leftovers.

aureliojargas/clitest