Remove trailing slash from PATH entry