Config: make path at least configurable from API
fix ResourceWarning