Add support for NEED_ROOT