more idiomatic Ruby expressions

no functional change
Merge pull request #5 from rolandwalker/system-command-idioms

more idiomatic Ruby expressions