clean PATH properly