Script fails for mssing EOL at end of file