change file exists test from -a to -e