[DF-4515] Script adapted for MacOS