Fixed typo where getpwuid was checked for twice.