Normalize $PATH element by removing trailing slashes