bash script corrupted