Fix lastFileName read error
Adding .gitignore file