Fixed Linux build and runtime

 - added a trim() call to import.txt for Windows/Linux endline compatibility