Moved module loading logic into gulp plugin