Remove setting PWD.
Add shebang and set executable bit.
Read files with corresponding charset encoding.
Disable quoting so as not to encounter "EOF within quoted string" error.