Support custom main files