More robust pipe checks and tests.
Merge pull request #14 from opscode/ss/OC-7160-2

More robust pipe checks and tests.