Remove trailing slashes from some PATH paths