fixed shell script to actually delete logs