This __init__ runs every time the loader hits this module. (Which happens quite frequently). In fact, if a user does not have permissions required by os.makedirs() here, it will stacktrace. This completely breaks things like salt-call for non-root users. We need to either try/except inside this or, better yet, consider a refactor to remove the need to hit the disk here every time the Salt loader pulls in this module.