Linux bash progress bar function