fix UnboundLocalError with fedup --device

The Great Denaming accidentally made 'fedup.media' and a local variable
named 'media' collide. Rename the local variable to fix that.