Check config variable before defining it [fixes #7]