Inject errors into ioutil.ReadDir calls from devices.go

Added ioutilReadDir variable and test following the pattern
established by osLstat.

Signed-off-by: Steve Powell <spowell@pivotal.io>