fix make check when run by root (bb#775)