Remove trailing slash from PATH