Remove trailing slash in PATH element