Allow the use of `SALT_CONFIG_DIR` through API access. Refs #2399.