Use bash as interpreter on SDF cluster; used gsed instead of sed on SDF cluster