Use tmpdir

Signed-off-by: Andrei Dinin <adinin@pivotal.io>