choose current filename more sensibly than [0] after deleting a file