Test file makedirs func

Fixes: https://github.com/saltstack/salt/issues/14019
Passes the integration tests that were failing in https://github.com/saltstack/salt/pull/14239