Moved away from using Shell=True in subprocess