test -e is not portable.

-e file   True if file exists. (Not available in sh.)