fix for NPE if there is no PATH env var