Remove trailing slash from item in PATH