Register source file only once. Fixes issue #1.