Adding the error output of the spawned command to figure out what is wrong running 'puppet --version'.
The assumption is that puppet IS in the path, but that another error occurs. All errors are reported as puppet not in the PATH unfortunately.