Try to guess the container engine in use

... then use appropriate method to extract the container's PID.

Hack inspired by @cpuguy83's PR  #41.