Update gitignore
Simplify check for proper working directory