script: check root at startup

Before everything else, avoid warnings