I'm not sure why this hasn't been failing on Linux.  the makedirs argument doesn't exist in modules/file.py either: https://github.com/saltstack/salt/blob/develop/salt/modules/file.py#L1649