create_schema_files.php is creating the oracle and postgres' schema files in such way that some parts of it have one extra \r than it should for the new lines creating new lines as "\r\r\n".
After some research, I can also conclude that this system wouldn't work properly if used in a linux system. The cause of this is relying on the "t" option in the fopen().
The main problem behind this is the "\r\n" written in the heredoc for both oracle and postgres and then using, at the same time, the "t" option in the mode.
The fix for this is almost complete.