Added the ability to check for symlinks/non-regular files before overwriting them.