Fix non-dotfile detection