Use test -f because Solaris sh does not support -e.