Fixed issue #2638 which prevented loading models in sub-folders by passing an array.
Removed new line from the end of the file.
Merge pull request #2641 from aanbar/develop

Fixed issue #2638
Fix a PostgreSQL string escaping bug and use pg_escape_literal() when possible