Shoehorn in support for checking for root

This is required (at least) when dealing with jails on FreeBSD

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>