don't allow web mode running as root
shut warning about wfile; set real_root in chroot_exec earlier so that on fail it is not None; chdir to / on chroot; extend whereis with chroot support