Fix cross-platform path traversal

# Fix cross-platform path traversal