fix url concat to handle empty paths