clean nil values & empty hashes under base_config