Moved DEFAULT_CONFIG to where it is used to fix #297