Consistently silence pushd and popd in hooks

Consistently redirect the output of pushd and popd to /dev/null in
cartridge scripts.