Don't use shell=True

Ww don't need to invoke the shell so often. This makes
the code simpler and more robust.

Change-Id: If4a1e0cd6f2750aea5258ea6a117747d03771945