Fixed root check (case with usage through sudo on OSX)