Fix custom_config check for ubuntu precise.