Fix: set proper session name from path with trailing slash