better path handling for the web interface