FIX: error when no tmp dir