Fix not noticing if cache file is empty. Fix Deleting chain.

Also fix multi option handling. I really did code this up to late
at night.

Change-Id: Iafed867221fc89f54bf6e97c59e21e02ff1da4ee