Fix: trim trailing slash from path