Also clean up some more linux-specific (`setPersonality`) code in alignment with recent best practices.