Updated test command for whether to init replset
Updated test command for whether to init replset

In order to successfully initiate the replica set, updated the `onlyif`
command to pipe the output of the grep command to the test command
because when executed inside of `$()` the mongo command was not found in
the subshell.

mitodl/mongodb-formula,mitodl/mongodb-formula,mitodl/mongodb-formula