Fix Popen arguments and other similar initialization

Popen expects cwd to be None if not set, so don't set to an empty
string instead.

Signed-off-by: Jeff Peeler <jpeeler@redhat.com>