Work with the system command execution

The Utils.exec(String) call kind of fails a bunch due to weird output
writing when it should not fail. This commit just swaps out some of
the logical bits there which should make it more stable.