Check for existence before deletion, not for type:file

This check was always failing as the type was a directory and not a file.
Using `-e` means that we check for any type.