Fix bug with absolute path handling on Windows. Updated tests.