fixed ending of bash script