Properly identify main files.