Fix path separator handling for Windows compatibility