isMain instead of relying on packages to determine main file