Only execute 'main' in scripts