fix script issue and change sh file from dos to unix format