Fix freeze script on mac