Remove trailing / from a $PATH entry