Only sudo was added in front of gitlab runner register command for MacOS. Without sudo the config.toml is not created