devroot: Fix stat and clean up rootgen.