added check for running as root, issue #10