Added conditions to check if .vim folder and .vimrc file exists before doing the 'rm' command.