Another solution could be to upload the config file with an automatic conversion from CRLF to LF line endings, like in an FTP ascii upload.  Maybe this is a possible option with 'comm.upload'.