check file extension when looking at package-declared "main"