check if tmpdir creation succeeded, exit otherwise (bnc#796918)