Unified path handling for CSS/JS