removes unintended slash from $PATH