Convert modules whitelist in the repl plugin to a map