test for -e before cp