Provide a clearer error msg if main not found