added cross platform support for paths and odbc/freetds