This solves an issue first observed with golang 1.8. Creating an exec.Command with an empty string parameter (when no puppet.conf file is specified) would lead to an error from Puppet, stating that an unexpected argument was passed to "puppet mgmtgraph print". The workaround is to not include *any* positional argument (not even the empty string) when --puppet-conf is not used.