Adding in checks for config directory