Update .gitignore and fix _log directory