pv: move final bit of unix I/O into device.ml

Signed-off-by: David Scott <dave.scott@eu.citrix.com>