Simple console program to get either the pid or name of the parent process