nodejs helper to gather all requirejs module paths