Add helpers for probing if the process is executing inside a snap. Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>