added extensions and fixed ignoring dotfiles