Make directory traversal Windows-compatible

Also add missing newline