Clean up source to meet desired style

* replace occurrences of args with arguments
* use foreach to iterate over shell arguments when appending

refs: p-e-w/finalterm#100