Protect import writing from functions declared in mobash's scope.