Fix issue caused by process substitution on sh