Fix generate-ttl for osx