Improve dependency checks and error messaging when running as an
unprivileged user