fixes bug with wildcard expansion

see https://groups.google.com/forum/#!topic/zerovm/peN_dAUxxHo
fixes a corner case where:
- count = 1
- no wildcards in read-only devices
- wildcards in write-only devices