Check if we are pid 1

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>