restore working folder after generate finished