[core] check if config exists (Fixes #148)