Fixed the skipFileNamed function to only use the basename of a file when checking against dotfiles_ignore