Use bash for better portability