Fix path handling.