Fixing module export when not using the CLI