fixed NPE if user.dir not exist