should be  if  is empty, not the other way around
Merge pull request #6 from ajjahn/fix-incorrect-process-name

$real_process should be $name if $process is empty, not the other way around