Cross-platform compatibility wrapper for Unix/Windows filesystem operations