Fixing typo which is preventing resolv.conf from working properly

I believe I introduced this bug awhile back. I'm also updating the if statement to use -L vs -e since its testing for a symlink.