Make the shell tests more portable.