properly detect ISO as an iso and rip as dvd

Maybe we should use file(1) here instead?