Fix broken shell script