Adding a trailing slash after path if not present when using salt.modules.file.makedirs

Fixes: https://github.com/saltstack/salt/issues/14019