Don't hard code the configuration paths. Please replace `/etc/salt/master` with `os.path.join(salt.syspaths.CONFIG_DIR, 'master')`.