Fixed failure when no tmp directory