Improved file detection for vimrc