when building for dist, look in .tmp for main