I'd be tempted to put these in a `scripts` sub-dir (or maybe `userScripts`), so change the `mkdir -p` and the `runScript` method.
But your call - you know what is more logical for a standard MongoDB install.