Made the file handling os-independent

It now uses os.path.join() to create paths instead of using hard-coded
"dir\dir\file.ext" - this way it works on other operative systems than
Windows.