Some OSes can't chmod -t for a file, so I changed the logic of our