patched ElColmo's system command code with some minor style changes