Ensure correct path prefix.