Use test -f rather than test -e, for portability (Solaris)