Get emit output external module

Fix Issues #780
nit: extra ";"