Update: use bash instead of sh