Fix bug that shrc test conducted only on sh