added better detection for 'needs_root()', not only checking for root ownership but also READ_ONLY and READ/WRITE. this way other files will be accounted for.