support main in package config.Fixes #10