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
Merge pull request #146 from pkit/bug_fix

fixes bug with wildcard expansion