LPS-50105 Improve error handling in RTL generation

In order to display messages in both build-time and run-time, System.err is used instead of Log.
LPS-50049 The lines that starts with ## should be ignored, but all the lines of the file should be processed.
LPS-50049 SF