Fix importOnce variable scope bug.

Without !global, the $modules variable is empty on each call. Preventing enforcement of the import once rule.

Fixes issue #13