fix bug with system paths