Updated download program to support old versions of bash