fix run as root bug report from @zspencer