more edge cases for finding main file / export