use test -f, Solaris /bin/sh doesn't know test -e