Remove shell invocations in rdmd and rdmd_test

This speeds things up a bit as we're no longer running things via a shell needlessly.