Fix to use user.dir when we don't have permissions to write in user.home. (/root)