[chown] sorta fixed some recursion and bad logic issues